<?php
$field_arr=$_POST['info'];
$id=$field_arr['id'];
$arr=array('id');
$field_arr=arr_diff($field_arr,$arr);

if($id=='')
{
	$field_arr['word']=str_replace('，',',',$field_arr['word']);
	$word_arr=explode(',',$field_arr['word']);
	foreach($word_arr as $v){
		$field_row['word']=$v;
	    insert_one_sql($table,$field_row,0);
	}
	admin_log('新增屏蔽关键词');
}
else
{
    update_sql($table,$field_arr,"id=$id",0,0);
	admin_log('修改屏蔽关键词');
}

echo alert('保存成功','admin.php?act=list');
?>
